import service from "@/utils/request/index";

/**
 * 查询所有小说
 * @returns Promise
 */
export const queryNovelList = () => service.get(`/novel/queryNovelList`);

/**
 * 查询小说章节内容
 * @param {*} param0 { novelName =》小说名【可填：shenMiFuSu | xiuXian】，chapterNum =》小说章节数 }
 * @returns Promise
 */
export const queryNovelChapter = ({ novelName, chapterNum }: any) => service.get(`/novel/${novelName}/${chapterNum}`);
